package com.lenovo.server.vote.bean;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * ѡ��
 * @author liuzhaodong
 */
@Entity
@Table(name="t_option")
public class Option {
	private int id;
	private String name;
	private Set<VoteUser> user = new HashSet<VoteUser>();
	
	@OneToMany
	public Set<VoteUser> getUser() {
		return user;
	}

	public void setUser(Set<VoteUser> user) {
		this.user = user;
	}

	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
